package com.grao.waterschool.human.entiry.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.grao.waterschool.human.entiry.vo.CourseListInfo;
import lombok.*;
import lombok.experimental.Accessors;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "wschool.t_wschool_course_device_info")
public class CourseDeviceInfo implements Serializable {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.NONE)
    private Integer id;

    @TableField(value = "kch")
    private String kch;

    @TableField(value = "kcmc")
    private String kcmc;

    @TableField(value = "zyssyxbmc")
    private String zyssyxbmc;

    @TableField(value = "nj")
    private String nj;

    @TableField(value = "kkxqm")
    private String kkxqm;

    @TableField(value = "kkxnd")
    private String kkxnd;

    @TableField(value = "bjmc")
    private String bjmc;

    @TableField(value = "zc")
    private String zc;

    @TableField(value = "xqj")
    private String xqj;

    @TableField(value = "skjc")
    private String skjc;

    @TableField(value = "skrq")
    private String skrq;

    @TableField(value = "sksj")
    private String sksj;

    @TableField(value = "jgh")
    private String jgh;

    @TableField(value = "jxbrs")
    private String jxbrs;

    @TableField(value = "jsh")
    private String jsh;

    @TableField(value = "jkh")
    private String jkh;

    @TableField(value = "channelCode")
    private String channelCode;

    @TableField(value = "channelName")
    private String channelName;

    private static final long serialVersionUID = 1L;

    public static CourseDeviceInfo getInstance(CourseListInfo info) {
        CourseDeviceInfo courseDeviceInfo = new CourseDeviceInfo();
        courseDeviceInfo.setKcmc(info.getKcmc());
        courseDeviceInfo.setBjmc(info.getBjmc());
        courseDeviceInfo.setZc(info.getZc());
        courseDeviceInfo.setXqj(info.getXqj());
        courseDeviceInfo.setSkjc(info.getSkjc());
        courseDeviceInfo.setSksj(info.getSksj());
        courseDeviceInfo.setJgh(info.getJgh());
        courseDeviceInfo.setJsh(info.getJsh());
        courseDeviceInfo.setJkh(info.getJkh());
        courseDeviceInfo.setSkrq(info.getSkrq());
        courseDeviceInfo.setChannelCode(info.getChannelCode());
        courseDeviceInfo.setChannelName(info.getChannelName());
        return courseDeviceInfo;

    }
}
